import request from '@/utils/request'

// 查询开票申请列表
export function listInvoice_application(query) {
  return request({
    url: '/ehr/invoice_application/list',
    method: 'get',
    params: query
  })
}

// 查询开票申请详细
export function getInvoice_application(applyId) {
  return request({
    url: '/ehr/invoice_application/' + applyId,
    method: 'get'
  })
}

// 新增开票申请
export function addInvoice_application(data) {
  return request({
    url: '/ehr/invoice_application',
    method: 'post',
    data: data
  })
}

// 修改开票申请
export function updateInvoice_application(data) {
  return request({
    url: '/ehr/invoice_application',
    method: 'put',
    data: data
  })
}

// 删除开票申请
export function delInvoice_application(applyId) {
  return request({
    url: '/ehr/invoice_application/' + applyId,
    method: 'delete'
  })
}

// 提交开票申请审批
export function approvalInvoice_application(data) {
  return request({
    url: '/ehr/invoice_application/approval',
    method: 'post',
    data: data
  })
}
